package com.qianfeng.controller;

import com.qianfeng.pojo.Cartype;
import com.qianfeng.service.CartypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin("*")
public class CartypeController {
    @Autowired
    private CartypeService cartypeService;
    @GetMapping("/cartype")
    public List<Cartype> selectAll(){
        return cartypeService.selectAll();
    }
}
